#ifndef STUMODE_H_
#define STUMODE_H_
#include "Student.h"
#include <vector>
using namespace std;

class Mode{
private:	
	vector<Student> stus;
	Mode() ;
	Mode(const Mode&);
	Mode& operator = (const Mode&);
	static Mode* instance;
public:
	static Mode* getInstance();
	
	//添加方法
	void insertStudent(const Student& stu);
	
	void display() const;
	
	void removeStudent(int id);
	
	
	void loadStudent(const char* pathName);
	void saveStudent(const char* pathName);

};

#endif
